//
//  ListCell.m
//  掌厨
//
//  Created by aoyolo on 15/10/24.
//  Copyright (c) 2015年 李祖铜. All rights reserved.
//

#import "ListCell.h"
#import "UIImageView+WebCache.h"

@implementation ListCell

- (void)awakeFromNib {
    // Initialization code
}
//排行榜数据
-(void)setList:(NSArray *)ListArray
{
    NSDictionary *dict = ListArray[0];
    self.label1.text = [dict objectForKey:@"title"];
    self.label2.text = [dict objectForKey:@"description"];
    [_image1 sd_setImageWithURL:[NSURL URLWithString:dict[@"image"]]];
    self.label3.text = [dict objectForKey:@"favorite"];
    self.label4.text = [dict objectForKey:@"play"];
    
    NSDictionary *dict1 = ListArray[1];
    self.label5.text = [dict1 objectForKey:@"title"];
    self.label6.text = [dict1 objectForKey:@"description"];
    [_image2 sd_setImageWithURL:[NSURL URLWithString:dict1[@"image"]]];
    self.label7.text = [dict1 objectForKey:@"favorite"];
    self.label8.text = [dict1 objectForKey:@"play"];
    
    NSDictionary *dict2 = ListArray[2];
    self.label9.text = [dict2 objectForKey:@"title"];
    self.label10.text = [dict2 objectForKey:@"description"];
    [_image3 sd_setImageWithURL:[NSURL URLWithString:dict2[@"image"]]];
    self.label11.text = [dict2 objectForKey:@"favorite"];
    self.label12.text = [dict2 objectForKey:@"play"];
}

@end
